#ifndef __KEY_H
#define __KEY_H

#include "Arduino.h"

// 按键状态结构体
typedef struct
{
	uint8_t keySingle;      
	uint8_t keyDouble;      
	uint8_t keyLong;        

	uint8_t keyJudge;       
	uint8_t keyState;       
	uint8_t keyTim;         

	uint8_t doubleTime;     
	uint8_t doubleEn;       
}KEY;

// 外部调用按键变量
extern KEY keys[2];         

// 按键初始化
void KEY_Init(void);
// 按键扫描
void KEY_Scan(void);


#endif
